home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Reference Guide
/
C-C++ Interactive Reference Guide.iso
/
c_ref
/
csource5
/
363_01
/
globals.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-16
|
2KB
|
51 lines
/***********************************************************************
*
* GLOBALS.C
* Global Variable Declarations for 68020 Assembler
*
* Author: Paul McKee
* ECE492 North Carolina State University, 12/13/86
*
* Modified A.E. Romer 16 March 1991
* Version 1.0
************************************************************************/
#include <stdio.h>
#include "asm.h"
/* General */
long loc; /* The assembler's location counter */
char pass2; /* Flag telling whether or not it's the second pass */
char endFlag; /* Flag set when the END directive is encountered */
char noOperand; /* TRUE if the instruction has no operand.
* Used by listLine. */
/* File pointers */
FILE *inFile; /* Input file */
FILE *listFile; /* Listing file */
FILE *objFile; /* Object file */
/* Listing information */
char line[LBUF_SIZE]; /* Source line buffer */
int lineNum; /* Source line number */
char *listPtr; /* Pointer to buffer where a listing line is assembled */
char continuation; /* TRUE if the listing line is a continuation */
/* Option flags with default values */
char listFlag = FALSE; /* True if a listing is desired */
char objFlag = TRUE; /* True if an object code file is desired */
char xrefFlag = FALSE; /* True if a cross-reference is desired */
char cexFlag = FALSE; /* True is Constants are to be EXpanded */
int errorCount, warningCount; /* Number of errors and warnings */